package com.aha.dataanalyzeandview.mapper;

import com.aha.dataanalyzeandview.entity.qdii.QDIIFoundationPremiumEstimationEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/******************************
 * Project:           data-analyze-and-view
 * FileName:          QdiiFoundationMapper.java
 * ClassName:         QdiiFoundationMapper
 * Time:              2020/9/22 22:33
 * Version:           1.00
 * Author:            努力就是魅力
 * Description:       TODO
 ******************************/

@Mapper
public interface QdiiFoundationMapper {

    /**
     * 批量存储 QDII 基金估值数据
     * @return
     */
    public Integer batchAddQdiiFoundationData(@Param("list") List<QDIIFoundationPremiumEstimationEntity> list );


    /**
     * 查询QDII 基金估值数据
     * @return
     */
    public List<QDIIFoundationPremiumEstimationEntity> queryQdiiFoundationData ();


    /**
     * 查询最后倒入数据的日期
     * @return
     */
    public QDIIFoundationPremiumEstimationEntity queryQdiiDataLastDate ();
}
